//
//  @ Project : Galaxy Star Trading System
//  @ File Name : LtsConvert.h
//  @ Date : 2014/9/5
//  @ Author :
//
//

#if !defined(_CLTSCONVERT_H_H)
#define _CLTSCONVERT_H_H

#ifdef BUILD_LTS

#include "api/SecurityFtdcTraderApi.h"
#include "api/SecurityFtdcUserApiDataType.h"
#include "api/SecurityFtdcUserApiStruct.h"

namespace GSTrader
{
	namespace TradeService
	{
		class CLtsConvert
		{
		public:
			CLtsConvert();
			virtual ~CLtsConvert();

		public:
			void ConvertInputOrder(CSecurityFtdcInputOrderField* pOrder, COrder* pTheData);
			void ConvertOrder(CSecurityFtdcOrderField* pOrder, COrder* pTheData);
			void ConvertTrade(CSecurityFtdcTradeField* pTrade, CTrade* pTheData);
			void ConvertTradingAccount(CSecurityFtdcTradingAccountField* pTradingAccount, CTradingAccount* pTheData);
			void ConvertMarketData(CSecurityFtdcDepthMarketDataField* pDepthMarketData, CDepthMarketData* pMarketData);
			void ConvertPosition(CSecurityFtdcInvestorPositionField* pInvestorPosition, CPosition* pTheData);
			void ConvertInstrument(CSecurityFtdcInstrumentField* pInstrument, CInstrument* pThedata);

			void ConvertCommissionRate(CSecurityFtdcInstrumentCommissionRateField* pInstrumentCommissionRate, CCommissionRate* pTheData);
		};

	}
}

#endif

#endif // _CLTSCONVERT_H_H